<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>添加到主屏</title>
  <link rel="stylesheet" type="text/css" href="./css/index.css" />
  <link rel="manifest" href="./manifest.json" />
</head>
<body>
  <div class="content color-1"></div>
  <div class="bottom">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>
  <script>
    if ('serviceWorker' in navigator) {
      navigator.serviceWorker.register('./sw.js').then(function(r) {
        console.log('注册成功', r);
      }).catch(function(err) {
        console.error('err', err);
      });
    }
  </script>
  <script src="./js/index-v1.js"></script>
</body>
</html>
